<?php

interface ICoreSessionHandlerIncInterface
{
	/**
	 * Open Session - retrieve resources
	 *
	 * @param	string	$sSavePath
	 * @param	string	$sName
	 */
	public function open($sSavePath, $sName);

	/**
	 * Close Session - free resources
	 */
	public function close();

	/**
	 * Read session data
	 *
	 * @param	string	$sId
	 */
	public function read($sId);

	/**
	 * Write Session - commit data to resource
	 *
	 * @param	string	$sId
	 * @param	mixed	$mData
	 */
	public function write($sId, $mData);

	/**
	 * Destroy Session - remove data from resource for
	 * given session id
	 *
	 * @param	string	$sId
	 */
	public function destroy($sId);

	/**
	 * Garbage Collection - remove old session data older
	 * than $maxlifetime (in seconds)
	 *
	 * @param	int		$iMaxLifeTime
	 */
	public function gc($iMaxLifeTime);
}